package com.bjfu.gmms.servlet;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

@WebServlet("/mentorQualificationEntry")
public class MentorQualificationEntryServlet extends HttpServlet {

    @Override
    protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {

        String mentorId = request.getParameter("mentorId");

        // 将导师ID传递给下一页面
        request.setAttribute("mentorId", mentorId);
        request.getRequestDispatcher("mentorQualificationEntry.jsp").forward(request, response);
    }
}
